//
//  Record.h
//  iOS_2D_RecordPath
//
//  Created by PC on 15/8/3.
//  Copyright (c) 2015年 FENGSHENG. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MAMapKit/MATraceManager.h>

@import CoreLocation;

@interface AMapRouteRecord : NSObject
// 所有坐标
@property (nonatomic, readonly) NSArray<CLLocation *> *locations;
// 标注的坐标
@property (nonatomic, readonly) NSArray<CLLocation *> *annotationLocations;
// 路径
@property (nonatomic, readonly) NSArray<NSDictionary  *> *filePaths;

- (NSString *)title;
- (NSString *)subTitle;

- (void)addLocation:(CLLocation *)location;

- (void)addAnnotationLocation:(CLLocation *)location withImagePath: (NSString *)imagePath withAudioPath: (NSString *)audioPath;

//- (void)addAnnotationwithAudioData:(NSData *)audioData AndFilePath:(NSString *)audioFilePath;
//
//- (void)addAnnotationwithPhotoData:(UIImage *)image;

- (NSString *)indexWithAudioFilePath:(NSInteger)index;

- (void)deleteAnnotationLocation;

- (CLLocationCoordinate2D *)coordinates;

- (NSInteger)numOfAnnotationLocation;

- (NSInteger)numOfLocations;

- (CLLocation *)startLocation;

- (CLLocation *)endLocation;

- (CLLocationDistance)totalDistance;

- (NSTimeInterval)totalDuration;

- (BOOL)saveRecordWithFileName:(NSString *)fileName;

@end
